import {getbannerApi} from "@/apis/banner.js";
import {onMounted, ref} from "vue";

export function useBanner(){
    const getbanner = async ()=>{
        const p = await getbannerApi('2')
        list.value = p.data.result
    }
    const list = ref([])

    onMounted(()=>{
        // console.log(route.params.id)
        getbanner()
    })
    return {
        list
    }
}
